package com.example.mybatisplus.mapper;

import com.example.mybatisplus.model.domain.Admin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yp
 * @since 2021-10-20
 */
@Repository
public interface AdminMapper extends BaseMapper<Admin> {
    Admin selectLogin(String loginName,String password);

    void updateWithIdChangePassword(Long id, Admin admin);

    void updateWithLoginNameChangePassword(String loginName,Admin admin);

    Admin selectName(String loginName);

    void deleteByTeaNumber(String teaNumber);
}
